/*
 * Copyright (c) 2012 SUBSECRETARIA DEFENSORIA DEL ESPACIO PUBLICO - SDEP.
 * All Rights Reserved.
 * This software is the confidential and proprietary information of SDEP
 * Developed By CONSTULT-SOFT S.A, Development Team 2012.
 *
 */
package co.gov.medellin.sdep.sisdep.regulacion.exception;

import java.io.Serializable;

import co.gov.medellin.sdep.sisdep.common.BaseException;
import co.gov.medellin.sdep.sisdep.common.message.RootMessageDescriptor;

/**
 * <p>
 * Excepciones propias usadas en la gestion de Modulos de los Comerciantes en SISDEP.
 * </p>
 * <p>
 * Copyright (c) 2012<BR>
 * Consult-Soft S.A.<BR>
 * Created on: Apr 26, 2012<BR>
 * 
 * @author atabares
 * </p>
 */
public class ModuloException extends BaseException implements Serializable {

	/** Generated serial version. */
	private static final long serialVersionUID = 1333710800024965830L;

	/**
	 * 
	 * @param descriptor
	 * @param infoError
	 * @param causa
	 */
	public ModuloException(RootMessageDescriptor descriptor, Object [] infoError, Throwable causa) {
		super(descriptor.getTechnicalMessage(infoError), causa);
		setEndUserMessage(descriptor.getEndUserMessage(infoError));
	}

	/**
	 * 
	 * @param descriptor
	 * @param infoError
	 */
	public ModuloException(RootMessageDescriptor descriptor, Object [] infoError) {
		super(descriptor.getTechnicalMessage(infoError));
		setEndUserMessage(descriptor.getEndUserMessage(infoError));
	}

}
